package com.example.demothree.dao;

import com.example.demothree.bean.Customer;
import com.example.demothree.bean.Suppliers;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface CustomerDao extends JpaRepository<Customer,Long> {
    @Query("from Customer where name = ?1")
    public Customer findCustomerByName(String name);
}
